<style type="text/css">
body {
	padding-top: 10px;
	padding-bottom: 40px;
}

.sidebar-nav {
	padding: 9px 0;
}

@media ( max-width : 980px) { /* Enable use of floated navbar text */
	.navbar-text.pull-right {
		float: none;
		padding-left: 5px;
		padding-right: 5px;
	}
}
</style>

<div class="container-fluid">
	<div class="row-fluid">
	<?php $this->load->view('element/menubar.php');?>
		<!--/span-->
		<div class="span9">
			<div class="mini-layout well">
				<form class="form-horizontal form-main" action="" method="post">
				<?php if(isset($message) and $message != NULL){?>
					<div class="alert alert-error" style="text-align: center;">
					<?php echo $message;?>
					</div>
					<?php } ?>
					<?php // echo validation_errors('<div class="alert alert-error" style="text-align: center;">','</div>') ?>
					<div
						class="control-group <?php if(form_error('uname')) echo ' error';?>">
						<label class="control-label">Họ tên</label>
						<div class="controls">
							<input type="text" name="uname" value="<?php echo $uname;?>" maxlength="40">
						</div>
					</div>
					<div
						class="control-group <?php if(form_error('email')) echo ' error';?>">
						<label class="control-label">Email</label>
						<div class="controls">
							<input type="text" name="email" value="<?php echo $email;?>" maxlength="255">
						</div>
					</div>
					<div
						class="control-group <?php if(form_error('group_id')) echo ' error';?>">
						<label class="control-label">Quyền</label>
						<div class="controls">
							<select class="" style="width: 80px;" name="group_id">
								<option value="0" <?php if($group_id == '0') echo 'selected="selected"'?>>User</option>
								<option value="1" <?php if($group_id == '1') echo 'selected="selected"'?>>Admin</option>
							</select>
						</div>
					</div>
					<div class="control-group">
						<div class="alert alert-block">
							<h4>Ghi chú</h4>
							Mật khẩu mặc định : <?php echo PASS_DEFAULT;?> 
						</div>
					</div>
					<div class="control-group">
						<div class="controls">
							<button name="save" value="1" type="submit" class="btn">Lưu lại</button>
							<button name="cancel" value="1" type="submit" class="btn">Không
								lưu</button>
						</div>
					</div>
				</form>
			</div>
		</div>
	</div>
</div>
